/**
 * 图片字典
 * author Forjune
 */
const pic = {
  arry: [
    'image/png',
    'image/jpg',
    'image/jpeg',
    'application/msword', // doc格式
    'application/pdf',
    'application/vnd.openxmlformats-officedocument.wordprocessingml.document', // docx格式
  ],
  obj: {
    'png': require('assets/ledger/png.png'),
    'jpg': require('assets/ledger/JPG.png'),
    'jpeg': require('assets/ledger/jpeg.png'),
    'doc': require('assets/ledger/doc.png'),
    'pdf': require('assets/ledger/PDF.png'),
    'docx': require('assets/ledger/docx.png'),
    'image/png': require('assets/ledger/png.png'),
    'image/jpg': require('assets/ledger/JPG.png'),
    'image/jpeg': require('assets/ledger/jpeg.png'),
    'application/msword': require('assets/ledger/doc.png'),
    'application/vnd.openxmlformats-officedocument.wordprocessingml.document': require('assets/ledger/docx.png'),
    'application/pdf': require('assets/ledger/PDF.png'),
  },
  typeCode: {
    'image/png': 4,
    'image/jpg': 4,
    'image/jpeg': 4,
    'application/msword': 1,
    'application/vnd.openxmlformats-officedocument.wordprocessingml.document': 1,
    'application/pdf': 2,
    'png': 4,
    'jpg': 4,
    'jpeg': 4,
    'doc': 1,
    'docx': 1,
    'pdf': 2
  },
  matchObj: {
    'image/png': '.png',
    'image/jpg': '.jpg',
    'image/jpeg': '.jpeg',
    'application/msword': '.doc', // doc格式
    'application/pdf': '.pdf',
    'application/vnd.openxmlformats-officedocument.wordprocessingml.document': '.docx', // docx格式
  }
}

export default pic
